package com.itxuchao.demo1;

public class Demo5 {
    public static void main(String[] args) {
        for (int x = 0; x <=20; x++) {
            for (int y = 0; y <=33; y++) {
                for (int z = 0; z <=300; z++) {
                    if(z==100-x-y & 5*x+3*y+z/3==100 &z%3==0){
                        System.out.println(x+","+y+","+z);
                    }
                }
            }
        }
    }
}
